//
//  HomeASProductItem.m
//  iOS_Store_V2
//
//  Created by Gary on 26/06/2017.
//  Copyright © 2017 czy. All rights reserved.
//




#import "HomeASProductItem.h"

@implementation HomeASProductItem

+(HomeASProductItem *)itemWithModel:(HomeProductListModel *)model
                       clickHandler:(void(^)(HomeASProductItem *item,ViewActionType actionType))clickHandler
                   selectionHandler:(void(^)(HomeASProductItem *item))selectionHandler {
    HomeASProductItem *item = [[HomeASProductItem alloc]init];
    item.model = model;
    item.onViewClickHandler = clickHandler;
    item.selectionHandler = selectionHandler;
    
    item.preferredSize = CGSizeMake(floor(kCellWidth), floor(kCellHeight));
    
    return item;
}



@end
